$(function(){
	var tamotamo = 0;
	function clickcn(event){
		$('div#ttt').append("タモ");
		tamotamo++;
		var audio = document.getElementById('music');
		audio.play();
	}
	function feed(event){
		var titleWord = 'タモ';
		for(var i=0; i<tamotamo; i++){
			titleWord = titleWord + 'タモ';
		};
		var data = {};
		$.postData('/activities/@viewer/@self',
			{title: titleWord, recipients: ['3693373']}, function() {}
		);
		tamotamo = 0;
		$('div#ttt').empty();
	}
	$('div#tamofeed').click(feed);
	$('div#tamo').click(clickcn);
});

function imgChange(id,src){
	document.getElementById(id).src = src;
}

function play(tag){
	var audio = document.getElementById(tag);
	audio.play();
}

